/**
 * related to index.ui
 * 
 * @Author : 18668972585
 * @Timestamp : 2017-06-02
 */
var page, nf;
nf = sm("do_Notification");
var app = sm("do_App");
page = sm("do_Page");
//var data = page.getData();

/*********************************************************/
var listview,listdata;
listview = ui("do_listview");
listdata = mm("do_ListData");
listview.bindItems(listdata);
/**
 * @listdata.addData(data, index) 向listdata 增加多条数据;
 */
listdata.addData([ { NAME : "李女士", LOGO : "" ,ID:"000000"}, 
                   { NAME : "张先生", LOGO : "" ,ID:"000001"},  
                   { NAME : "伊布", LOGO : "" ,ID:"000002"},   
                   { NAME : "梅西", LOGO : "" ,ID:"000003"} ]);
/**
 * @listview.refreshItems(); 刷新listview;
 */
listview.refreshItems();
listview.on("touch", function(index) {
    /**
     * @点击事件
     */
    nf.alert(listdata.getOne(index), "touch");
    do_App.openPage({
//		source:"source://view/MyPatient/info/maininfo.ui", 
//		statusBarState:"transparent",
//		animationType:"slide_r2l",
//		data: listdata.getOne(index)
	});
});